package com.dns.message;

import java.io.Serializable;

public class DNS_Message implements Serializable{

	private static final long serialVersionUID = 1310876611416246523L;
	private int msgType;
	private String domainName;
	private String ip_address;
	private String clientAddress;
	private int clientPort;
	private String source;
	private int ttl;
	private int result;  //Constants.SUCCESS OR Constatnts.FAILURE

	public DNS_Message(){
		
	}
	public DNS_Message(int mType,String name,String address, String source){
		this.msgType=mType;
		this.domainName=name;
		this.ip_address=address;
		this.source=source;
	}


	public int getMsgType() {
		return msgType;
	}

	public void setMsgType(int msgType) {
		this.msgType = msgType;
	}

	public String getDomainName() {
		return domainName;
	}

	public void setDomainName(String domainName) {
		this.domainName = domainName;
	}

	public String getIp_address() {
		return ip_address;
	}

	public void setIp_address(String ip_address) {
		this.ip_address = ip_address;
	}

	public String getClientAddress() {
		return clientAddress;
	}
	public void setClientAddress(String clientAddress) {
		this.clientAddress = clientAddress;
	}
	public int getClientPort() {
		return clientPort;
	}
	public void setClientPort(int clientPort) {
		this.clientPort = clientPort;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public int getTtl() {
		return ttl;
	}
	public void setTtl(int ttl) {
		this.ttl = ttl;
	}

	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}


}
